<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$oid = $_GPC['oid'];
		$sid = $_GPC['sid'];
		if($sid != 1){
			$up = pdo_update('mii_ang_order',array('is_ok'=>'1','ok_time'=>$_W['timestamp']),array('oid'=>$oid));
			if($up){
				$code = json_encode(array('status'=>'1','msg'=>'确认成功'));
				exit($code);
			}else{
				$code = json_encode(array('status'=>'2','msg'=>'确认失败'));
				exit($code);
			}
		}else{
			$code = json_encode(array('status'=>'2','msg'=>'该订单已完成。'));
			exit($code);			
		}
	}else{
			$code = json_encode(array('status'=>'2','msg'=>'没有操作权限'));
			exit($code);
	}



?>